Skip to content

Print preview: right click picks a gap and puts bends on lines - #4

Merged
Firestone82 merged 2 commits into
masterfrom
feat/right-click-gaps-bends
Nov 28, 2026
Merged

Firestone82 merged 2 commits into
masterfrom
feat/right-click-gaps-bends

Conversation

@Firestone82

Copy link
Copy Markdown
Owner

What changed

  • A gap between two cards is now picked with a right click on the empty space between them. A left click there no longer picks it; it only closes a gap that is already picked.
  • A right click on a line puts a bend on it at that spot (addBend), and the line becomes led by hand. Dragging either side of the bend then leads that part on its own, joined to the rest by a step.
  • The bends of lines led by hand are marked with small dots, in the preview only. A right click on a dot takes that bend off (removeBend). A bend in a straight run simply goes. A corner goes together with its step, with the stretch beyond it put in line. If a line is left with only an unfixable corner, the layout leads it again.
  • bent() now keeps points in the middle of a straight run (the bends), and only drops doubled points. A dragged line is tidied (tidied) so the helper points a drag adds don't stay behind as bends.
  • The hints in EN and CS mention the right clicks.

Why

Pavel asked for gap picking to use the right click, and for right-click bends on lines.

How to test

  • npx ng test --watch=false: 429 tests pass, with new tests for addBend, removeBend, bent with bends, and tidied. ng lint and ng build pass.
  • In Print: right-click between two cards and the gap bar appears; a left click there does nothing. Right-click a line and a dot appears. Drag one side of it, then right-click the dot to take it off.

Generated by Claude Code

A gap between two cards is now picked with a right click instead of a
left click. A right click on a line puts a bend on it there, so the line
can be led differently on either side; the bends of lines led by hand are
marked with dots, and a right click on one takes it off again (a corner
goes with its step; a line left with no bend is led by the layout again).
Bends in the middle of a straight run are kept when a line is drawn.
…ps-bends

# Conflicts:
#	src/app/features/print-studio/print-preview/print-preview.spec.ts
@Firestone82
Firestone82 merged commit 9f1c3e6 into master Nov 28, 2026
@Firestone82
Firestone82 deleted the feat/right-click-gaps-bends branch November 29, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant